export const pageRoutes = [
  {
    path: '/promote',
    name: 'promote',
    component: () => import(/* webpackChunkName: "promote" */ '@/views/promote/Layout.vue'),
    children: [
      {
        path: '/adplan',
        name: 'adplan',
        component: () => import(/* webpackChunkName: "adplan" */ '@/views/promote/adplan/Main.vue'),
        children: [
          {
            path: 'account',
            name: 'account',
            component: () => import(/* webpackChunkName: "account" */ '@/views/promote/adplan/AccountList.vue')
          },
          {
            path: 'group',
            name: 'group',
            component: () => import(/* webpackChunkName: "group" */ '@/views/promote/adplan/GroupList.vue')
          },
          {
            path: 'advertise',
            name: 'advertise',
            component: () => import(/* webpackChunkName: "advertise" */ '@/views/promote/adplan/AdvertList.vue')
          },
          {
            path: 'idea',
            name: 'idea',
            component: () => import(/* webpackChunkName: "idea" */ '@/views/promote/adplan/IdeaList.vue')
          }
        ]
      }
    ]
  },
  {
    path: '/create',
    name: 'create',
    component: () => import(/* webpackChunkName: "create" */ './views/create/Layout.vue'),
    children: [
      {
        path: 'toutiao',
        name: 'toutiao',
        component: () => import(/* webpackChunkName: "bytedancemain" */ './views/create/toutiao/Main.vue'),
        children: [
          {
            path: 'campaign',
            name: 'campaign',
            component: () => import(/* webpackChunkName: "bytecampaign" */ './views/create/toutiao/Campaign.vue')
          },
          {
            path: 'plan',
            name: 'plan',
            component: () => import(/* webpackChunkName: "byteplan" */ './views/create/toutiao/Plan.vue')
          },
          {
            path: 'creative',
            name: 'creative',
            component: () => import(/* webpackChunkName: "bytecreative" */ './views/create/toutiao/Creative.vue')
          }
        ]
      },
      {
        path: 'tencent',
        name: 'tencent',
        component: () => import(/* webpackChunkName: "tencentmain" */ './views/create/tencent/Main.vue'),
        children: [
          {
            path: 'campaign',
            name: 'campaign',
            component: () => import(/* webpackChunkName: "tencentcampaign" */ './views/create/tencent/Campaign.vue')
          },
          {
            path: 'plan',
            name: 'plan',
            component: () => import(/* webpackChunkName: "tencentplan" */ './views/create/tencent/Plan.vue')
          },
          {
            path: 'creative',
            name: 'creative',
            component: () => import(/* webpackChunkName: "tencentcreative" */ './views/create/tencent/Creative.vue')
          }
        ]
      }
    ]
  }
]

export const appRoutes  = [
  {
    path: '/login',
    name: 'login',
    component: () => import(/* webpackChunkName: "login" */ '@/views/LoginView.vue')
  }
]
